package com.googlecode.restitory.gae.xml;

import com.google.appengine.api.taskqueue.TaskHandle;
import com.google.gson.JsonObject;

public class GAEUtil {

	public static JsonObject create(TaskHandle handler) {
		JsonObject ret = new JsonObject();
		ret.addProperty("name", handler.getName());
		ret.addProperty("queueName", handler.getQueueName());
		ret.addProperty("etaMillis", handler.getEtaMillis());
		ret.addProperty("retryCount", handler.getRetryCount());
		return ret;
	}

}
